﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ComponentModel.DataAnnotations;

namespace HCQ2_Model.VR.Params
{
    /// <summary>
    ///  更改默认收货地址
    /// </summary>
    public class ModifyAddressParam
    {
        /// <summary>
        ///  用户编码
        /// </summary>
        [Required(ErrorMessage = "用户编码不能为空！")]
        public string userid { get; set; }
        /// <summary>
        ///  收货地址ID
        /// </summary>
        [Required(ErrorMessage = "收货地址id不能为空！")]
        [RegularExpression("^([1-9][0-9]*)$", ErrorMessage = "请输入收货地址ID")]
        public int id { get; set; }
        /// <summary>
        ///  状态：【0=取消，1=设为默认】
        /// </summary>
        public int status { get; set; } = 1;
    }
}